﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace EZCRS.HCMS.Entity
{
    #region HCRS_channel
    /// <summary>
    /// 
    /// </summary>
    public class HCRS_channel
   {
        private int? _id;
        private string _code;
        private string _name;
        private string _remark;
        private int? _rank;



        public HCRS_channel()
        {}


        public HCRS_channel(DataRow dr)
        {
            if (dr != null)
            {
                if(dr["id"].ToString()!="")_id=Convert.ToInt32(dr["id"].ToString());
                _code=dr["code"].ToString();
                _name=dr["name"].ToString();
                _remark=dr["remark"].ToString();
                if(dr["rank"].ToString()!="")_rank=Convert.ToInt32(dr["rank"].ToString());


            }
        }



        #region 公共属性 


         /// <summary>
         /// 自动编号
         /// </summary>
         [DataFieldAttribute("id", "pk")]
         public int? id
         {
             get { return _id; }
             set { _id = value; }
         }

         /// <summary>
         /// 渠道编号
         /// </summary>
         [DataFieldAttribute("code")]
         public string code
         {
             get { return _code; }
             set { _code = value; }
         }

         /// <summary>
         /// 渠道名称
         /// </summary>
         [DataFieldAttribute("name")]
         public string name
         {
             get { return _name; }
             set { _name = value; }
         }

         /// <summary>
         /// 备注信息
         /// </summary>
         [DataFieldAttribute("remark")]
         public string remark
         {
             get { return _remark; }
             set { _remark = value; }
         }

         /// <summary>
         /// 排序
         /// </summary>
         [DataFieldAttribute("rank")]
         public int? rank
         {
             get { return _rank; }
             set { _rank = value; }
         }



        #endregion


    }
    #endregion
}
